package response

import (
	"time"

	models "github.com/smash-llj/Nexa-server/models"
)

type GroupInfoResp struct {
	Info   *models.Group `json:"info"`
	Member []models.User `json:"member"`
}

type GetUserGroupsResp struct {
	Name      string `json:"name"`
	Avatar    string `json:"avatar"`
	NumberId  int    `json:"numberId"`
	SessionId string `json:"sessionId"`
	Id        int    `json:"id"`
}

type CreateGroupResp struct {
	SessionId string `json:"sessionId"`
	GroupId   int    `json:"groupId"`
}

type GetGroupMembersResp struct {
	Id        int       `json:"id"`
	UUID      string    `json:"uuid"`
	Username  string    `json:"username"`
	Avatar    string    `json:"avatar" `
	Address   string    `json:"address" `
	Sign      string    `json:"sign" `
	Birthdate time.Time `json:"birthdate" `
	Gender    string    `json:"gender" `
	BgImage   string    `json:"bgImage" `
	Role      string    `json:"role"`
}

type GetGroupMemberAndOwnersResp struct {
	OwnerId int                   `json:"ownerId"`
	Members []GetGroupMembersResp `json:"members"`
}
